<template>
    <div>
        <!-- 回车后的页面 -->

        <van-search v-model="value" show-action placeholder="请输入搜索关键词" @search="onSearch" @cancel="onCancel" />

        <!-- <van-dropdown-menu>
            <van-dropdown-item v-model="value1" :options="option1" />
            <van-dropdown-item v-model="value2" :options="option2" />
            <van-dropdown-item v-model="value3" :options="option3" />
        </van-dropdown-menu> -->
    </div>
</template>

<script>
// import { getSearchHelper } from '@/utils/https.js';
export default {
    data() {
        return {
            value: '',
        };
    },
    methods: {
        onSearch() {
            Toast(this.value);
        },
        onCancel() {
            this.$router.push('/home');
        },
    },
    // created() {
    //     getSearchHelper().then(res => {
    //         console.log(res);
    //     });
    // },
};
</script>

<style lang="less" scoped></style>
